/**
 * @author: gao
 * @create-date: 2025/3/1 19:28
 */

public class Test {
    public static void PrintTreeNode(TreeNode root){
        if(root == null){
            return;
        }
        PrintTreeNode(root.left);
        PrintTreeNode(root.right);
        System.out.print(root.val+" ");
    }

    public static void main(String[] args) {
        Solution solution = new Solution();

        int[] Inorder = new int[]{9,3,15,20,7};
        int[] Postorder = new int[]{9,15,7,20,3};

        TreeNode root = solution.buildTree(Inorder,Postorder);
        PrintTreeNode(root);
    }
}
